package me.miencraft.plugin.superlobby.util;

/**
 * @author langle__
 * @version 1.0
 */
public enum CommandType {
    Player,
    Op,
    Console;

    public static CommandType getCommandType(String commandType) {
        if (commandType.equalsIgnoreCase("[player]")) {
            return CommandType.Player;
        } else if (commandType.equalsIgnoreCase("[op]")) {
            return CommandType.Op;
        } else if (commandType.equalsIgnoreCase("[console]")) {
            return CommandType.Console;
        }
        return null;
    }

}
